﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminOrderDetail.ascx.cs" Inherits="smartphone.UserControls.AdminOrderDetail" %>

<div class="AdminOrdeDetail AdminDiv">
<form runat="server">
  <h2>
    <asp:Label ID="orderIdLabel" runat="server" CssClass="adminTitleEdit" Text="Đơn hàng số" />
  </h2>
  <span class="WideLabel">Tổng tiền:</span>
  <asp:Label ID="totalAmountLabel" runat="server" CssClass="ProductPrice" />
  <br />
  <span class="WideLabel">Ngày tạo:</span>
  <asp:TextBox ID="dateCreatedTextBox" runat="server" Width="400px" />
  <br />
  <span class="WideLabel">Ngày giao:</span>
  <asp:TextBox ID="dateShippedTextBox" runat="server" Width="400px" />
  <br />
  <span class="WideLabel">Tình trạng:</span>
  Đã xác nhận <asp:CheckBox ID="verifiedCheck" runat="server" />
  Đã hoàn thành <asp:CheckBox ID="completedCheck" runat="server" />
  Đã hủy <asp:CheckBox ID="canceledCheck" runat="server" />
  <br />
  <span class="WideLabel">Thông tin bổ sung:</span>
  <asp:TextBox ID="commentsTextBox" runat="server" Width="400px" CssClass="AdminOrderDetail" />
  <br />
  <span class="WideLabel">Tên khách hàng:</span>
  <asp:TextBox ID="customerNameTextBox" runat="server" Width="400px" />
  <br />
  <span class="WideLabel">Địa chỉ:</span>
  <asp:TextBox ID="shippingAddressTextBox" runat="server" Width="400px" />
  <br />
  <span class="WideLabel">Email khách hàng:</span>
  <asp:TextBox ID="customerEmailTextBox" runat="server" Width="400px" />
  <br />
    <div class="OrderDetailCommand">
      <asp:Button ID="editButton" CssClass="adminButton" runat="server" Text="Sửa" Width="100px" />
      <asp:Button ID="updateButton" CssClass="adminButton" runat="server" Text="Cập nhật" Width="100px" />
      <asp:Button ID="cancelButton" CssClass="adminButton" runat="server" Text="Hủy" Width="100px" />
        <br />
      <asp:Button ID="markVerifiedButton" CssClass="adminButton  AdminOrderbt" runat="server" 
        Text="Đánh dấu đã xác nhận" Width="310px" /><br />
      <asp:Button ID="markCompletedButton" CssClass="adminButton AdminOrderbt" runat="server" 
        Text="Đánh dấu đã hoàn thành" Width="310px"/><br />
      <asp:Button ID="markCanceledButton" CssClass="adminButton AdminOrderbt" runat="server" 
        Text="Đánh dấu đã hủy" Width="310px"/><br />
    </div>
  <p>
    Các sản phẩm trong đơn hàng:
  </p>
  <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" BackColor="White" Width="100%">
    <Columns>
      <asp:BoundField DataField="maSanPham" HeaderText="Mã sản phẩm" ReadOnly="True"/>
      <asp:BoundField DataField="tenSanPham" HeaderText="Tên sản phẩm" ReadOnly="True"/>
      <asp:BoundField DataField="soLuong" HeaderText="Số lượng" ReadOnly="True"/>
      <asp:BoundField DataField="donGia" HeaderText="Đơn giá" ReadOnly="True"/>
      <asp:BoundField DataField="thanhTien" HeaderText="Thành tiền" ReadOnly="True"/>
    </Columns>
  </asp:GridView>
</form>
</div>
